﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Utils.Weixin.Pay.Model
{
    public class PersonInfo
    {
        [DisplayName("姓名"), RequiredAny]
        public string RealName { get; set; }

        [DisplayName("手机号"), Phone]
        public string Mobile { get; set; }

        [DisplayName("邮箱"), RequiredAny, EmailAddress(ErrorMessage = "邮箱格式有误")]
        public string Email { get; set; }

        [DisplayName("身份证"), RequiredAny]
        public string IdCardNo { get; set; }

        /// <summary>
        /// 人像面
        /// </summary>
        [DisplayName("人像面"), RequiredAny]
        public string IdCardPortrait { get; set; }

        /// <summary>
        /// 国徽面
        /// </summary>

        [DisplayName("国徽面"), RequiredAny]
        public string IdCardNational { get; set; }
        /// <summary>
        /// 身份证地址
        /// </summary> 

        [DisplayName("身份证地址"), RequiredAny]
        public string IdCardAddress { get; set; }

        [DisplayName("身份证有效期"), RequiredAny]
        public DateTime CardValidBegin { get; set; }

        public DateTime? CardValidEnd { get; set; }

        public string OpenId { get; set; }
    }
}
